package com.kingja.sample.callback;


import com.kingja.loadsir.callback.Callback;
import com.kingja.sample.ResourceTable;
import ohos.agp.components.Component;
import ohos.app.Context;


/**
 * Description:TODO
 * Create Time:2017/9/3 10:22
 * Author:huawei
 * Email:huaweivip@gmail.com
 */
public class CustomCallback extends Callback {

    @Override
    protected int onCreateView() {
        return ResourceTable.Layout_layout_custom;
    }

    @Override
    protected boolean onReloadEvent(final Context context, Component view) {
        (view.findComponentById(ResourceTable.Id_iv_gift)).setClickedListener(new Component.ClickedListener() {
            @Override
            public void onClick(Component component) {

            }
        });
        return true;
    }
}
